package com.oriental.manage.service.specially;

import com.oriental.manage.pojo.specially.BatchMessage;

import java.util.List;

/**
 * Author: yutao
 * Date: 2017/4/21
 * Time: 16:38
 * Desc：
 */
public interface BatchMessageProcess<T,N> {
    /**
     *
     * @param batchMessage
     * @return 详情对象
     */
    T queryDetail(BatchMessage batchMessage);

    /**
     *
     * @param
     * @return 传到DUBBO传到后台实体
     */
    List<N> query(List<BatchMessage> list);

    /**
     * 审核失败
     * @param batchMessage
     */
    void auditFail(List<BatchMessage> batchMessage);

    /**
     *审核
     * @param status
     * @param batchMessage
     */
    void callback(String status,List<BatchMessage> batchMessage);



}
